<?php

namespace models;

class Users extends BaseModel {
    protected $logName = '用户';
    protected $auto    = [
        ['create_time', 'time', self::MODEL_INSERT, 'function'],
    ];

    /**
     * 获取用户昵称
     *
     * @param string $uid
     *
     * @return mixed
     */
    public function getNickName($uid = '') {
        $find = $this->getFind($uid, 'nickname');

        return $find;
    }

}